<template>
    <div class="main-center-wrapper">
        <div class="main-center-top">
            <div>
                <el-button type="primary" @click="$store.state.views = 0">借书系统</el-button>
            </div>
            <div>
                <el-button type="success" @click="$store.state.views = 1">还书系统</el-button>
            </div>
            <div>
                <el-button type="warning" @click="$store.state.views = 2">注册信息</el-button>
            </div>
        </div>
        <div class="main-center-center">
            <div>
                <dv-decoration-6 style="width:100%;height:0.25rem;" />
            </div>
<!--            借书界面-->
            <div class="main-center-borrow-books" v-if="$store.state.views === 0">
                <div class="main-borrow-photo">
                    <div class="main-borrow-photo-core"></div>
                </div>
                <div class="main-borrow-book-information">
                    <div class="main-borrow-book-border-top">
                        <dv-decoration-10 style="width:100%;height:0.1rem;" />
                    </div>
                    <div class="main-borrow-book-information-box">
                        <div class="person-name">
                            <p>姓名:<p/>
                            <p style="margin-left: 0.25rem">wzj</p>
                        </div>
                        <div class="book-name">
                            <p>书名:</p>
                            <p style="margin-left: 0.25rem">深入理解javascript</p>
                        </div>
                    </div>
                    <div class="main-borrow-book-border-bottom">
                        <dv-decoration-10 style="width:100%;height:0.1rem;" />
                    </div>
                </div>
            </div>
<!--            还书界面-->
            <div class="main-center-return-books" v-if="$store.state.views === 1">
                <div class="main-return-book-information">
                    <div class="main-return-book-border-top">
                        <dv-decoration-10 style="width:100%;height:0.1rem;" />
                    </div>
                    <div class="main-return-book-information-box">
                        <div>
                            <img src="../../../assets/books.png" alt="">
                        </div>
                        <div class="book-name">
                            <p>书名:</p>
                            <p style="margin-left: 0.25rem">深入理解javascript</p>
                        </div>
                    </div>
                    <div class="main-return-book-border-bottom">
                        <dv-decoration-10 style="width:100%;height:0.1rem;" />
                    </div>
                </div>
            </div>
<!--            注册信息界面-->
            <div class="main-center-login-books" v-if="$store.state.views === 2">
                <div class="main-login-photo">
                    <div class="main-login-photo-core"></div>
                </div>
                <div class="main-login-book-information">
                    <div class="main-login-book-border-top">
                        <dv-decoration-10 style="width:100%;height:0.1rem;" />
                    </div>
                    <div class="main-login-book-information-box">
                        <div class="person-name">
                            <p>姓名:<p/>
                            <p style="margin-left: 0.25rem">wzj</p>
                        </div>
                        <div class="class-name">
                            <p>班级:</p>
                            <p style="margin-left: 0.25rem">通信xxx</p>
                        </div>
                    </div>
                    <div class="main-borrow-book-border-bottom">
                        <dv-decoration-10 style="width:100%;height:0.1rem;" />
                    </div>
                </div>
            </div>
        </div>
        <div class="main-center-bottom">
            <div class="main-center-bottom-left">
                <video src="../../../assets/readBook.mp4" style="width: 100%;height: 100%"
                preload="none" autoplay muted loop></video>
            </div>
            <div class="main-center-bottom-right">
                <div style="padding: 0.1rem">
                    <p style="text-indent: 2em;line-height: 2em"><span style="color: red">4月23日</span>世界读书日全称“世界图书与版权日”，又称<span style="color: red">“世界图书日”</span>。1995年11月15日正式确定每年4月23日为“世界图书日”。其设立目的是推动更多的人去阅读和写作，希望所有人都能尊重和感谢为人类文明做出过巨大贡献的文学、文化、科学、思想大师们，保护知识产权。每年的这一天，世界一百多个国家都会举办各种各样的庆祝和图书宣传活动 。</p>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name: "mainCenter"
    }
</script>

<style scoped lang="less">
    .main-center-wrapper{
        padding: 0.25rem;
        width: 10rem;
        height: 9rem;
        .main-center-top{
            height: 0.8rem;
            width: 100%;
            display: flex;
            justify-content: space-around;
            align-items: center;
        }
        .main-center-center{
            height: 6rem;
            display: flex;
            flex-direction: column;
            background:repeating-linear-gradient(to right,#070D54, #0080ff);
            .main-center-borrow-books{
                display: flex;
                flex-direction: row;
                height: 5.75rem;
                .main-borrow-photo{
                    width: 6rem;
                    height: 100%;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    .main-borrow-photo-core{
                        height: 4rem;
                        width: 3.5rem;
                        border-radius: 0.08rem;
                        background-color: #77E4FF;
                    }
                }
                .main-borrow-book-information{
                    width: 4rem;
                    height: 100%;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-around;
                    .main-borrow-book-information-box{
                        display: flex;
                        flex-direction: column;
                        font-size: 0.25rem;
                        color: #77E4FF;
                        .person-name{
                            display: flex;
                            align-items: center;
                        }
                        .book-name{
                            display: flex;
                            align-items: center;
                        }
                    }
                }
            }
            .main-center-return-books{
                color: #eeeeee;
                display: flex;
                flex-direction: row;
                align-items: center;
                height: 5.75rem;
                .main-return-book-information{
                    height: 100%;
                    width: 100%;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-around;
                    align-items: center;
                    .main-return-book-information-box{
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                        align-items: center;
                        .book-name{
                            display: flex;
                            justify-content: center;
                            font-size: 0.25rem;
                        }
                    }
                }
            }
            .main-center-login-books{
                /*color: #eeeeee;*/
                display: flex;
                flex-direction: row;
                height: 5.75rem;
                .main-login-photo{
                    width: 6rem;
                    height: 100%;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    .main-login-photo-core{
                        height: 4rem;
                        width: 3.5rem;
                        border-radius: 0.08rem;
                        background-color: #5564d0;
                    }
                }
                .main-login-book-information{
                    width: 4rem;
                    height: 100%;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-around;
                    .main-login-book-information-box{
                        display: flex;
                        flex-direction: column;
                        font-size: 0.25rem;
                        color: #77E4FF;
                        .person-name{
                            display: flex;
                            align-items: center;
                        }
                        .class-name{
                            display: flex;
                            align-items: center;
                        }
                    }
                }
            }
        }
        .main-center-bottom{
            margin-top: 0.4rem;
            height: 2rem;
            width: 100%;
            display: flex;
            justify-content: space-between;
            .main-center-bottom-left{
                width: 3rem;
                background-color: #666;
                border-radius: 0.11rem;
            }
            .main-center-bottom-right{
                width: 6.8rem;
                background-color: #070D54;
                color: #d0c5b1;
                display: flex;
                align-items: center;
                border-radius: 0.11rem;
            }
        }
    }
</style>
